package de.slowlog;

import java.util.Date;

public class SlowLogFactory {

	public SlowLog create() {
		SlowLog log = new SlowLog();

		SlowLogEntry entry = new SlowLogEntry();
		entry.setTime(new Date(1));
		entry.setQueryTime(100);
		entry.setQuery("select 1 ...");
		log.addEntry(entry);

		entry = new SlowLogEntry();
		entry.setTime(new Date(10));
		entry.setQueryTime(200);
		entry.setQuery("select 2 ...");
		log.addEntry(entry);

		entry = new SlowLogEntry();
		entry.setTime(new Date(20));
		entry.setQueryTime(150);
		entry.setQuery("select 3 ...");
		log.addEntry(entry);

		entry = new SlowLogEntry();
		entry.setTime(new Date(30));
		entry.setQueryTime(250);
		entry.setQuery("select 4 ...");
		log.addEntry(entry);

		entry = new SlowLogEntry();
		entry.setTime(new Date(40));
		entry.setQueryTime(100);
		entry.setQuery("select 5 ...");
		log.addEntry(entry);

		return log;
	}

}
